package test;

import cn.cvs.dao.SysUserMapper;
//import cn.cvs.dao.SysUserMapperImpl;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Ch07SSM {
    @Test
    public void testCount(){

        String url ="applicationContext_mybatis.xml";
        ApplicationContext context = new ClassPathXmlApplicationContext(url);
//        SysUserMapper dao =context.getBean("userMapperImpl", SysUserMapper.class);
        SysUserMapper dao =context.getBean(SysUserMapper.class);
        System.out.println(dao.count());

    }

}
